#include<iostream>
#include<string>
#include<fstream>
#include<vector>
#include "LinearTimeChoose.cpp"
#include "FileProcessor.cpp"
using namespace std;
int main()
{
	const string infile_name = "input.txt";
    const string outfile_name = "output.txt";
    int search_k_small = 1;
	vector<int> data;
	FileProcessor fp;
	LinearTimeChoose ltc;
    fp.getdata(infile_name,data);//�õ����
	int x = ltc.randomizeSelect(data,0,data.size()-1,search_k_small);//ȡ�õ�search_k_smallС����
	fp.output_data(outfile_name,x);//��ȡ�õ���������ļ���
	return 0;
}
